/*******************************************************************************
 * Copyright (c) 2012, G. Weirich and Elexis
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *    G. Weirich - initial implementation
 *******************************************************************************/

package ch.elexis.easy.ui.elements;

import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Label;

import ch.elexis.core.data.IActionDefinition;

public class Agenda implements IElexisEasyComponent {
	
	@Override
	public Image getImage(int size){
		// TODO Auto-generated method stub
		return null;
	}
	
	@Override
	public String getLabel(){
		return "appointments";
	}
	
	@Override
	public Composite createComponent(Composite parent, String subcomponent){
		Composite ret = new Composite(parent, SWT.BORDER);
		ret.setLayout(new FillLayout());
		ret.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_BLUE));
		Label l = new Label(ret, SWT.NONE);
		l.setText("appointments detail");
		
		return ret;
		
	}
	
	@Override
	public IActionDefinition[] getActions(String subcomponent){
		return new IActionDefinition[0];
	}
	
}
